package com.fh.modules.system.entity;

import java.io.Serializable;

import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fh.common.query.QueryRuleEnum;
import com.fh.common.query.annotation.QueryWrapperRule;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * @author Qiu,Junda 
 * @date 2019年4月17日
 * @description 上传的文件管理
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ToString
public class SysFile implements Serializable{
	
	private static final long serialVersionUID = 1L;
	
	/**
     * id
     */
    @TableId(type = IdType.ID_WORKER_STR)
    private String id;
    
    @Excel(name = "文件分类ID", width = 15)
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private java.lang.String categoryId;
	/**文件名*/
	@Excel(name = "文件名", width = 15)
	@QueryWrapperRule(rule=QueryRuleEnum.LIKE)
	private java.lang.String name;
	/**文件后缀*/
	@Excel(name = "文件后缀", width = 15)
	@QueryWrapperRule(rule=QueryRuleEnum.LIKE)
	private java.lang.String suffix;
	/**本地路径*/
	@Excel(name = "本地路径", width = 15)
	private java.lang.String localUrl;
	/**客户端访问路径*/
	@Excel(name = "客户端访问路径", width = 15)
	private java.lang.String visitUrl;
	/**文件大小，单位bit*/
	@Excel(name = "文件大小，单位bit", width = 15)
	private java.lang.Integer size;
	/**文件描述*/
	@Excel(name = "文件描述", width = 15)
	private java.lang.String description;
	/**查看次数*/
	@Excel(name = "查看次数", width = 15)
	private java.lang.Integer checkTimes;
	/**下载次数*/
	@Excel(name = "下载次数", width = 15)
	private java.lang.Integer downloadTimes;
	/**文件标签*/
	@Excel(name = "文件标签", width = 15)
	private java.lang.String tag;
	/**删除状态0整除1已删除*/
	@Excel(name = "删除状态0整除1已删除", width = 15)
	private java.lang.Integer delFlag;
	/**上传人*/
	@Excel(name = "上传人", width = 15)
	private java.lang.String createBy;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private java.util.Date createTime;
	/**最近修改人*/
	@Excel(name = "最近修改人", width = 15)
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private java.lang.String updateBy;
	/**最近一次修改时间*/
	@Excel(name = "最近一次修改时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private java.util.Date updateTime;
    
    
}
